package com.dgut.hisystem.service.impl;

import com.dgut.hisystem.entity.Register;
import com.dgut.hisystem.mapper.RegisterMapper;
import com.dgut.hisystem.service.RegisterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RegisterServiceImpl implements RegisterService {
    @Resource
    private RegisterMapper registerMapper;

    @Override
    public Register getRegisterById(long id) {
        return registerMapper.getRegisterById(id);
    }

    @Override
    public List<Register> getRegister(){
        return registerMapper.getRegister();
    }

    @Override
    public void insert(Register register) {
        registerMapper.insert(register);
    }

    @Override
    public void update(Register register) {
        registerMapper.update(register);
    }

    @Override
    public void delete(long id) {
        registerMapper.delete(id);
    }
}
